home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 015a / fkeys.zip / FKEYS.DOC next >
Text File  |  1990-10-21  |  7KB  |  149 lines

  1.                                      F KEYS
  2.                              (C) 1990 Ray Dittmeier
  3.  
  4.      F KEYS is a program that allows you to redefine what your function keys
  5. do at the DOS prompt.  With F KEYS, you can run your favorite programs at the
  6. touch of a single key, redefine other keys on the keyboard, or change your
  7. screen colors.
  8.      The program has you create text files, called configuration files, that
  9. store your new F Key definitions.  After a configuration file is created, you
  10. may use the new definitions by typing  FKEYS  followed by the name of your
  11. configuration file, at the DOS prompt.  You can create as many configuration
  12. files as you wish, and you can "re-redefine" the F Keys as many times as you
  13. want during a single computing session.
  14.  
  15.      First, you must create a configuration file.  Simply type FKEYS (without
  16. a file name after it) at the DOS prompt.  The program will display an opening
  17. screen and ask you for the name of a configuration file.  At this point, you
  18. have three choices:
  19.  
  20. 1.  Press return without typing anything.  You can then begin entering
  21.     your new definitions and name the configuration file when you have
  22.     finished.
  23. 2.  Type the name of an existing configuration file.  F KEYS will load
  24.     that file, and you can edit it and save the changes.
  25. 3.  Type the name for a new configuration file.  You can then enter new
  26.     definitions for a file that will be created with this name.
  27.  
  28. After you press return, the definition screen will appear.  You will see F Key
  29. numbers on every other line down the left side of the screen.  The definition
  30. for each key will appear on the line immediately under the number.  For
  31. example, if a configuration file contains the definition of DIR/W for F1, the
  32. first two lines of the screen will look like this:
  33.  
  34. F1:
  35. DIR/W
  36.  
  37. You can move around the definition screen with the Cursor Arrow keys, Tab,
  38. Shift-Tab, Home, and End.
  39.  
  40. Delete deletes the character at the cursor's position.  Backspace deletes the
  41. character to the immediate right of the cursor.
  42.  
  43. Insert toggles Insert Mode on and off.  This works the same way as Insert and
  44. Typeover Mode in word processors.  The current Insert Mode setting is
  45. indicated at the bottom of the screen.
  46.  
  47. If you press Enter while on an F Key definition line, the computer will
  48. display a solid rectangle █ (ASCII 219) at the cursor position.  This is to
  49. allow you to put a carriage return at the end of the line.  With the return,
  50. your F Key definition will execute immediately after you press the key.
  51. Without it, you must press return yourself after hitting the F Key.  You might
  52. want to leave the return out if, for example, you redefine F2 as COPY.  You
  53. could hit F2 to get the word COPY, then add the file name yourself.  You can
  54. also use the █ to chain commands, such as
  55.  
  56. FORMAT A:█COPY B:*.* A:█DIR A:█
  57.  
  58. This will format the floppy disk in drive A, copy all the files from drive B
  59. to your newly formatted disk in drive A, then give you a directory for drive
  60. A.
  61.      Chaining commands like this is also how you can use F KEYS to issue ANSI
  62. codes to change screen colors and redefine other keys:
  63.  
  64. SET PROMPT = $E[0;32;44m█SET PROMPT = $P$G█CLS█
  65.  
  66. This will set your prompt to the ANSI code that gives you green characters on
  67. a blue background.  Then it will reset your prompt to display the path and
  68. the "greater than" symbol and clear the screen.  (It is admittedly a rather
  69. roundabout technique when you should be able to redefine the F Key with the
  70. ANSI code by itself, but it won't work.  If you try it, hitting the F Key
  71. will cause DOS to treat the escape character at the beginning as if you had
  72. hit the escape key on the keyboard, making the rest of the ANSI code worthless.
  73. If you're interested in ANSI codes, the DOS manual that came with your
  74. computer should have a bit of information.  Even better, I highly recommend
  75. PC Magazine's book "DOS Power Tools."  Not only does it provide more
  76. information useful to both beginners and experienced users than any other
  77. single book I've seen, but it comes with a disk packed full of utilities.)
  78.  
  79.      After typing in the definitions you want (You don't have to redefine
  80. every F Key), move the cursor down to the Configuration File Name space.  Make
  81. sure the file name is as you want it and press Enter.  F KEYS will save your
  82. new definitions in a text file with the name you specify, but with the .FCG
  83. extension (Any time the program asks for a file name, just type in the
  84. primary name--that is, the part before the period.  The program itself will
  85. automatically add the .FCG).
  86.  
  87.      To redefine your F Keys, run the program by typing FKEYS followed by a
  88. space, then the name of the configuration file that contains the definitions
  89. you want.  For example,
  90.  
  91. FKEYS ONE
  92.  
  93. would reassign the F Keys as defined in the file ONE.FCG.  The program will
  94. display onscreen the numbers of the keys begin redefined, along with their
  95. new definitions, then return you to the DOS prompt.  Remember that your new
  96. definitions are good only in DOS itself.  In other programs, the F Keys will
  97. behave as they should within the program.
  98.  
  99.      The program looks for the configuration files only in the current
  100. directory.  Therefore, keep the configuration files in the same directory as
  101. the program itself.  Also, you can run F KEYS from your AUTOEXEC.BAT file,
  102. but if you don't have it in your root directory, don't use a line like
  103.  
  104. C:\UTIL\FKEYS ONE
  105.  
  106. Instead, change directories if you need to:
  107.  
  108. CD UTIL
  109. FKEYS ONE
  110. CD\
  111.  
  112.                            ***** IMPORTANT! *****
  113.  
  114.      F KEYS performs its redefinitions by building ANSI escape codes from the
  115. data in your configuration file and then writing the codes to the screen.
  116. Therefore, you must have ANSI.SYS installed on your system for the program to
  117. work (You can create the configuration files on the definition screen without
  118. ANSI.SYS, however.).  If you're not sure if you have ANSI.SYS installed, go
  119. to the root directory of your hard drive (or of the floppy disk you boot up
  120. your computer with) and type
  121.  
  122. TYPE CONFIG.SYS
  123.  
  124. You're okay if you get a display containing the line
  125.  
  126. DEVICE = ANSI.SYS
  127.  
  128. Otherwise, you'll have to add that line to your CONFIG.SYS file, or if you
  129. don't have a CONFIG.SYS file, you'll have to create it (Also, make sure the
  130. file ANSI.SYS is there, too).  Since CONFIG.SYS is merely a text file, any
  131. pure-ASCII text editor will do, including EDLIN, which comes with DOS (The
  132. COPY CON command will work if you're careful enough with your typing).
  133. DEVICE = ANSI.SYS can be the only line in the CONFIG.SYS file, or if you're
  134. curious enough, I'll again send you to your DOS manual or the PC Magazine
  135. book.
  136.  
  137.  
  138.      **************************************************************
  139.  
  140.  
  141.      F KEYS is distributed as shareware.  Copy it and give it to your friends.
  142. Upload it to bulletin boards.  Spread it around any way you want.  In exchange
  143. for a registration fee of $7.00, I'll send you a disk with more programs.  I
  144. would also be happy to receive any comments, suggestions, or criticisms, or to
  145. answer questions.  Send all correspondence to:
  146.  
  147.      Ray Dittmeier
  148.      P.O. Box 4724
  149.      Louisville, Ky.  40204